package com.example.emos.api.db.dao;

import com.example.emos.api.db.pojo.TbExam;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/13 23:33
 * @description：
 */
@Mapper
public interface TbExamDao {

    public ArrayList<HashMap> selectCheckListBypages(HashMap param);

    public int insert(TbExam exam);

    public int deleteExamByIds(Integer ids[]);

    public int update(HashMap param);

    public TbExam selectCheckListById(Integer id);

    public void updateperson(int i);

    public long countCheckList();

    public int maxExamineeId();

    public void insertExaminee(int maxExamineeId, int person, String name);

    public ArrayList<HashMap> getUser();

    public void addmark(int person, String personName, int scorer, int weight, int maxExamineeId);

    public int maxExamId();

    public int totalScore(int templateId);

    public int markId();

    public void insertTask(String title,
                           int personId,
                           String personName,
                           int scorer,
                           String scoreName,
                           Object options,
                           int maxExamineeId,
                           double totalScore,
                           int markID
    );

    public void updateStatus(int id, int status);

    public void deleteExamniee(Integer id);

    public void deleteMark(Integer id);

    public void deleteTask(Integer id);
}
